home *** CD-ROM | disk | FTP | other *** search
- /* ChessMaster3000.thor by Troels Walsted Hansen
- ** $VER: ChessMaster3000.thor v1.30 (29.01.95)
- **
- ** An ARexx script for playing a game of chess against another THOR-
- ** user through messages on a BBS.
- */
-
- Instructions for use
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- You need to have the main THOR window open, because the script uses the
- message listview for displaying the chess board. If you start the script
- and the current message doesn't contain a game underway, you have the
- option of starting a new one. Starting a new game will make you the white
- player and thus let you have the first move. You may choose any BBS to
- post the message on, any receiver, any subject, etc.
-
- Making your move is done via a string requester asking for coordinates.
- Entering e.g. 'b1c3' will move your white knight from B1 to C3. The game
- *does* *not* check the validity of your moves under the rules of chess.
- It merely checks whether you're really moving one of your own pieces to
- a valid square.
-
- You may also click the 'Special moves' button (leaving the string gadget
- empty) and be prompted with three different choices. Exchanging of pawns
- is probably the most common one and you may use it when one of your pawns
- have reached the other end of the board. It may be exchanged into either
- of the other pieces, except for the king of course.
-
- To castle is the second option. This involves moving your king two steps the
- left (long castling) or to the right (short castling). The squares between
- the king and either of your castles must be open, and if they are, the castle
- will jump over the king and stand next to him.
-
- The last option is the rarest (at least I had never heard of it before), it
- let's you beat an opponent pawn 'en passant' (in passing). One of your pawns
- must've been guarding the square in front of an opponent pawn, an opponent
- pawn which has not moved earlier in the game. Not having moved earlier gives
- the pawn the opportunity to walk past you by taking it's two-step first move.
- If it does this you may beat it, without moving your own pawn, when it is
- your turn. This must happen immediately after the opponent pawn jumped past
- your guarding pawn.
-
- Winning the game is accomplished by actually beating the opponent's king.
- This is not usually done in chess, but this script has no facilities for
- detecting a checkmate.
-
- After you've made your move, you will be prompted with the possibility to
- edit the message. This allows you to relay haughty comments to your opponent,
- but you must be careful not to edit below the '***ChessMaster [...]' line!
- Doing so might make the script unable to parse the message when your opponent
- is making his/hers move. Anything above the indicated line will be ignored
- and discarded by the script.
-
- Other info
- ¯¯¯¯¯¯¯¯¯¯
- The chess pieces are represented as follows:
- K = King B = Bishop C = Castle
- Q = Queen N = Knight P = Pawn
-
- A square with a '^'-character below it is *black*.
-
- Black chess pieces are indicated with styletags for reverse video. If you
- haven't switched on Styletags and ANSI in THOR's Visual Config, all you'll
- see is a pair of '#'-characters next to the black pieces, ruining the game.
-
- Author
- ¯¯¯¯¯¯
- Troels Walsted Hansen <troelsh@powertech.no>. Contact me through e-mail or
- on Ultima Thule for bugreports or requests for features.
-
- History
- ¯¯¯¯¯¯¯
- New in v1.05:
- · fixed names of the chess pieces
- · userdatabase lookup
-
- New in v1.10:
- · implemented Pawning and Castling
- · corrected starting positions
- · switched coordinates, to conform to chess standards
-
- New in v1.20:
- · enabled editing of file
- · implemented Passant
- · wrote the docs
-
- New in v1.30:
- · implemented glorious winner message :-)
-